package com.xidata.dict.service;

import com.xidata.dict.entity.CodeDict;

import java.util.Collection;
import java.util.List;
import java.util.Optional;

public interface CodeDictService {
    Optional<CodeDict> lookup(String codeType, String code, String language);

    List<CodeDict> findByCodeType(String codeType);

    Optional<CodeDict> lookupSameTranslate(String sourceLanguage, String sourceText, String targetLanguage);

    void add(String codeType, String code, String language, String text);

    void add(CodeDict codeDict);

    void batchAdd(Collection<CodeDict> collection);

    void removeAll();

    void remove(String codeType);

    void remove(String codeType, String code);

    void remove(String codeType, String code, String language);
}
